<?php
/**
 * @name Layout
 * @package public
 * @author Truonghm
 * @version $1.0
 * @license http://officex.vn/license
 * @copyright ecommerce.
 * 30/10/2010
 * Thiet lap layout he thong
 */
class Ofx_Plugin_Themes extends Zend_Controller_Plugin_Abstract
{
	public function routeShutdown(Zend_Controller_Request_Abstract $request)
	{		
		$layoutPath = OFX_APP_DIR  . '/themes/admin';
        $option = array ('layout' => 'index',
                   		 'layoutPath' => $layoutPath);
        
        $front = Zend_Controller_Front::getInstance();
    	$front ->throwExceptions(true)
    	  	   ->registerPlugin(new Ofx_Plugin_Auth());
    	  	   
		Zend_Layout::startMvc($option);		
	}
}